//
//  Groups.m
//  TabBar
//
//  Created by 陈德锋 on 16/4/13.
//  Copyright © 2016年 陈德锋. All rights reserved.
//

#import "Groups.h"
#import "Member.h"

@implementation Groups

+ (instancetype)parsingJsonWithDictionary:(NSDictionary *)dict
{
    return [[self alloc] parsingJsonWithDictionary:dict];
}

- (instancetype)parsingJsonWithDictionary:(NSDictionary *)dict
{
    if (self == [super init]) {
        [self setValuesForKeysWithDictionary:dict];
        
        NSMutableArray * memberArr = [NSMutableArray array];
        for (NSDictionary * dic1 in self.groups) {
            Member *member = [Member parsingJsonWithDictionary:dic1];
            [memberArr addObject:member];
        }
        self.groups = memberArr;
    }
    return self;
}

@end
